﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace VAdvantage.Panels
{
    public partial class ADTreePanel : UserControl
    {
        private const long serialVersionUID = 5473705529310157142L;

        public ADTreePanel()
        {
            InitializeComponent();
            Init();     
        }

        private void Init()
        {
            //tree.Style = new St   ( "border: none");

            //pnlSearch = new TreeSearchPanel(tree, Events.ON_SELECT);
        }

        public void InitTree(int AD_Tree_ID, int windowNo)
        {
            //ctx = Env.getCtx();
            Utility.Ctx ctx = new Utility.Ctx();
            ctx.SetAD_Client_ID(0);
            ctx.SetAD_Org_ID(0);
            ctx.SetAD_Role_ID(0);
            
            int adRoleId = ctx.GetAD_Role_ID();
            int adTreeId = 100;// GetTreeID(ctx, adRoleId);
           // MTree mTree = new MTree(ctx, adTreeId, false, true, null);

            //if (mTree == null)
            //{
            //    throw new Exception("Could not load menu tree");
            //}

           // MTreeNode rootNode = mTree.GetRoot();
            
           // InitMenu(rootNode);
        }

    }
}
